.TH E1432_SET_MMF_DELAY 3 E1432
.SH NAME
.nf
e1432_set_mmf_delay \- Set measurement mmf_delay
e1432_get_mmf_delay \- Get current measurement mmf_delay
.fi
.IX e1432_set_mmf_delay(3) 3
.IX e1432_get_mmf_delay(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_mmf_delay(E1432ID hw, SHORTSIZ16 ID,
                               LONGSIZ32 mmf_delay)
SHORTSIZ16 e1432_get_mmf_delay(E1432ID hw, SHORTSIZ16 ID,
                               LONGSIZ32 *mmf_delay)
.cE
.SH DESCRIPTION

These functions are needed only for multi-mainframe measurements.  For
some multi-mainframe measurements, synchronization between mainframes
can be a problem.  This problem can be worked around by telling
modules in the master mainframe to delay their measurement state
transitions.

\fIe1432_set_mmf_delay\fR sets a measurement delay time, of a single
channel or group of channels \fIID\fR, to the value given in
\fImmf_delay\fR.

\fIe1432_get_mmf_delay\fR returns the current value of the measurement
delay time, of a single channel or group of channels \fIID\fR, into a
memory location pointed to by \fImmf_delay\fR.

This parameter is a "global" parameter.  It applies to an entire E1432
module rather than to one of its channels.  The \fIID\fR parameter is
used only to identify which module the function applies to, and all
channels in that module will report the same value for this parameter.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fImmf_delay\fR specifies the delay in 4 ms increments.  This is the
time that the module will delay releasing the sync/trigger line,
helping to ensure synchronization between modules in a multi-mainframe
measurement.  A suggested value of 5 should be used for modules in the
master mainframe.  Larger values will provide more assurance of
synchronization, but will also slow down the measurement loop.

This parameter should be zero (which is the default) in all modules in
the slave mainframes.  It should be non-zero only for modules in the
master mainframe.

.SH "RESET VALUE"
After a reset, the measurement \fImmf_delay\fR is set to \fB0\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_multimain, e1432_arm_measure_master_finish
.ad
